<template>
	<view class="flex-r flex-start flex-fill">
		<view class="">
			<image class="wh25-25" mode="aspectFill" :src="pic(machine.pic)"></image>
			<status class="w100 tac round1 padtb1" :item="item.status"></status>
		</view>
		<view class="flex1 padl3 fs8 lh2 c12 ofh">
			<view class="fs12 c11">{{machine.name}}</view>
			<view><text>单号：</text>{{item.sn}}</view>
			<view class="ofe"><text>故障：</text>{{item.info}}</view>
			<view><text>紧急程度：</text>{{isnull(item.emergency)?'未设置':item.emergency.name}}</view>
			<view><text>提报时间：</text>{{datetime(item.createAt)}}</view>
		</view>
		<view class="flcc fs14 c12" v-show="showAngle">
			<text class="fa fa-angle-right"></text>
		</view>
		<ripple></ripple>
	</view>
</template>

<script>
	export default {
		props:{
			item:'',
			showAngle:{
				type:Boolean,
				default:true
			}
		},
		data() {
			return {
				machine:''
			}
		},
		methods: {
			
		},
		mounted() {
			this.machine = this.item.machine
			this.log(this.item)
		}
	}
</script>

<style>

</style>
